- 2 minutes to read

Formula - Field

New 6.1 The field Formula function extracts the value from a named field from a Log Event.

Field values
Example of Field values from the search field wizard modal.

Quick example

Let's get you started with the following example:

Input Expression Result

MessageGUID = ca8e3ab5-7359-4726-a9ca-1f594a4190a1
  

field('MessageGUID')


ca8e3ab5-7359-4726-a9ca-1f594a4190a1

Text Data Field Unique values

Features

  • Extract the value from the named pre-defined field of a Nodinite Log Event.
  • You can nest this operation.

This plugin loads the entire message into RAM, so make sure to apply this function only on small messages..

How to use

To configure the Formula plugin with the field function:

  1. Select Formula as the expression type plugin.
  2. Write down the expression to use in the 'Expression' text area with the named Field to extract, for example, field('MessageGUID').
  3. The Fields and the Field Values are on display in the Field Values tab.
  4. The result is displayed.

Field Value Example
Example of extracting a value from a Field using the search field wizard.

Syntax

The field function has one parameter which is the name of the Field (case-sensitive):

  • field('Name')
Name Description
ApplicationInterchangeId Id for Application scope
EndPointDirection Endpoint Direction
EventDirection EventDirection
EventId Id of event (Guid)
LocalInterchangeId Id for local scope
LogDateTime The originating date time for the Log Event
MessageGUID The Id of the main body part (Guid)
OriginalMessageTypeName The name of the Message Type
TotalSize Size in bytes

Next Step

How to Add or manage Search Fields
How to Add or manage Log Views

What are Search Fields?
What are Search Field Expressions?
What are Message Types?
What are Log Views?

  • Body - Extract body from the Log Event
  • Context - Extract value from key-value collection
  • ContextKey - Extract value from the key-value collection using RegEx

Expression Type Plugins are used in Search Fields